﻿using System.Globalization;
using System.Windows;
using System.Windows.Data;

namespace FireUI.Themes.WPF.Converters;

internal class CornerRadiusToThicknessConverter : IValueConverter
{
    public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
    {
        if (value is CornerRadius corner)
        {
            return new Thickness(corner.TopLeft, corner.TopRight, corner.BottomRight, corner.BottomLeft);
        }
        return new Thickness(0);
    }

    public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
    {
        throw new NotImplementedException();
    }
}